package com.dmz.etc.task.utils.ftp;

import cn.hutool.extra.ftp.Ftp;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author lee
 */
@Data
public class FtpFile {

    private Ftp ftp;

    private String remotePath;
    /**
     * 带文件名
     */
    private String localPath;

    private String fileName;

    private String endWith;

    public FtpFile(Ftp ftp, String remotePath, String localPath, String fileName) {
        this.ftp = ftp;
        this.remotePath = remotePath;
        this.localPath = localPath;
        this.fileName = fileName;
    }

    public FtpFile(Ftp ftp, String remotePath, String localPath, String fileName, String endWith) {
        this.ftp = ftp;
        this.remotePath = remotePath;
        this.localPath = localPath;
        this.fileName = fileName;
        this.endWith = endWith;
    }
}
